#ifndef PRINTF_H_
#define PRINTF_H_
#include "hal_uart.h"

#define UART0_SELECT (0)
//typedef char * va_list;
//#define _INTSIZEOF(n) ((sizeof(n)+sizeof(int)-1)&~(sizeof(int)-1))
//#define va_start(ap,v) (ap=(va_list)&v+_INTSIZEOF(v))
//#define va_arg(ap,type)  (*(type *)((ap+=_INTSIZEOF(type))-_INTSIZEOF(type)))
//#define va_end(ap)	(ap=(va_list)0)


void UartSendByte(uint8 data, uint8 which);
void UartSendStr(const char *pstr, uint8 which);	
int uprintf(char *format,...);
void IntStrHex(int data,char *pstr);



#endif /*PRINTF_H_*/
